# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class Instance(object):

    def __init__(self, instanceId=None, migrationName=None, migrationStatus=None, proxyDomain=None, proxyPassword=None, currentStep=None, currentStepStatus=None, failedReason=None, source=None, target=None, region=None, createdTime=None):
        """
        :param instanceId: (Optional) 迁移任务ID
        :param migrationName: (Optional) 迁移任务名
        :param migrationStatus: (Optional) 迁移状态（creating：创建中，validated：验证通过，invalid：验证失败，starting：启动中，waitMigrate：待迁移，migrating：迁移中，migrated：迁移成功，createFailed：创建失败，startFailed：启动失败，migrateFailed：迁移失败，error：异常错误，deleting：删除中，migrateTimeout：迁移超时)
        :param proxyDomain: (Optional) 迁移代理域名
        :param proxyPassword: (Optional) 迁移代理连接密码
        :param currentStep: (Optional) 当前迁移步骤
        :param currentStepStatus: (Optional) 当前迁移步骤状态（init：初始化，running：运行中，success：成功，fail：失败）
        :param failedReason: (Optional) 迁移失败原因
        :param source: (Optional) 源端redis实例配置信息
        :param target: (Optional) 目的端redis实例配置信息
        :param region: (Optional) 地域
        :param createdTime: (Optional) 创建时间(ISO 8601标准的UTC时间，格式为：YYYY-MM-DDTHH:mm:ssZ)
        """

        self.instanceId = instanceId
        self.migrationName = migrationName
        self.migrationStatus = migrationStatus
        self.proxyDomain = proxyDomain
        self.proxyPassword = proxyPassword
        self.currentStep = currentStep
        self.currentStepStatus = currentStepStatus
        self.failedReason = failedReason
        self.source = source
        self.target = target
        self.region = region
        self.createdTime = createdTime
